<script>
	import {
		getAutoLogin
	} from "@/http/api/index/index.js"
	import Cache from '@/utils/cache'
	export default {
		onLaunch: function() {
			// console.log('App Launch')
			// let that = this
			// uni.login({
			// 	provider: 'weixin',
			// 	success: function(loginRes) { 
			// 		getAutoLogin({
			// 			wxCode:loginRes.code
			// 		}).then(res=>{
			// 			if(res.code===200){
			// 				Cache.set('access_token', res.data.access_token); 
			// 				that.$store.dispatch('getUserInfo');
			// 				that.$store.dispatch('getCategorys');
			// 			}
			// 		}) 
			// 	},
			// 	fail: function(err) {
			// 		console.error('登录失败:', err);
			// 	}
			// }); 
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData: {
			ossurl: 'https://oss.lailalaila.cn/',
			// ossurl: 'https://oss.starbounce.cn/',
		}
	}
</script>

<style>
	@import './common/app.css';
	@import '@/static/style/thorui-extend.scss';
	@import '@/style/free.css';
	@import '@/style/color.css';
	@import '@/style/size.css';
	@import '@/style/common.scss';
</style>